<!DOCTYPE html>
<html>
    <head>
        <title>Issue 1338: Increment CSS values at least significant digit</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
        <style type="text/css">
            #element1 {
                width: 7em;
                height: 7em;
                background-image: -moz-linear-gradient(135deg, #788CFF, #B4C8FF);
            }
        </style>
    </head>
    <body>
        <h1><a href="http://code.google.com/p/fbug/issues/detail?id=1338">Issue 1338</a>: Increment CSS values at least significant digit</h1>
        <div>
            <section id="content">
                <div id="element1"></div>
            </section>
            <section id="description">
                <h3>Steps to reproduce</h3>
                <ol>
                    <li>Inspect the blue <code>&lt;div&gt;</code> above</li>
                    <li>Switch to the <em>Style</em> side panel</li>
                    <li>Click on the value of the <code>width</code> property to start inline editing</li>
                    <li>
                        Press <code class="key">Up</code><br/>
                        <span class="ok">&rArr; <code>8em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">Ctrl+Up</code><br/>
                        <span class="ok">&rArr; <code>8.1em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">Shift+Up</code><br/>
                        <span class="ok">&rArr; <code>18.1em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">Down</code><br/>
                        <span class="ok">&rArr; <code>17.1em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">Ctrl+Down</code><br/>
                        <span class="ok">&rArr; <code>17.0em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">Shift+Down</code><br/>
                        <span class="ok">&rArr; <code>7em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">PageDown</code><br/>
                        <span class="ok">&rArr; <code>-3em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">PageUp</code><br/>
                        <span class="ok">&rArr; <code>7em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">Shift+PageDown</code><br/>
                        <span class="ok">&rArr; <code>-93em</code> is shown inside the inline editor</span>
                    </li>
                    <li>
                        Press <code class="key">Shift+PageUp</code><br/>
                        <span class="ok">&rArr; <code>7em</code> is shown inside the inline editor</span>
                    </li>
                </ol>
                <h3>Expected Results</h3>
                <ul>
                    <li>
                        The value should be in-/decreased by 0.1, 1 or by 10 depending on
                        <code class="key">Ctrl</code> or <code class="key">Shift</code> or
                        no modifier being pressed together with
                        <code class="key">Up</code>/<code class="key">Down</code>
                    </li>
                </ul>
            </section>
            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
        </div>
    </body>
</html>
